const timeUtil = {
  getDate(unixTime) {
    const date = new Date(unixTime)
    return `${date.getFullYear().toString().substring(2)}/${date.getMonth() + 1}/${date.getDate()}`
  },
  getTime(unixTime) {
    const date = new Date(unixTime)
    return `${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
  }
}

export default timeUtil